<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        /* 
          setTimeout (函数，毫秒数)
          指定的时间后，这个函数自动执行
          返回值是定时器的名字
          后面的代码继续执行
        */

        function play(){
            console.log('打篮球');
        }
        var timer1=setTimeout(play,3000);


        var timer2=setTimeout(function(){
            console.log('剑圣');
        },2000);


        var timer3=setTimeout(function(){
            console.log('无敌');
        },5000);
    </script>
</body>
</html>